package com.whu.waterworks.dao;

import java.util.List;
import com.whu.waterworks.model.WaterPlant;

/**
 * 
 * @author cai
 * @date  2016-3-8
 */
public interface WaterPlantDao {
	public List<WaterPlant>  getAll();
	public WaterPlant getWaterPlantById(String waterPlantCode);
	public WaterPlant getWaterPlantByName(String waterPlantName);
	
	public boolean saveWaterPlant(WaterPlant waterPlant);
	public boolean updateWaterPlant(WaterPlant waterPlant);
	public boolean delWaterPlant(WaterPlant waterPlant);
	public WaterPlant getWaterPlantOfMaxCode();
	//public WaterPlant getWaterPlantOfLast();
	/**
	 * 反冲洗水泵个数
	 * @author wangying
	 * @return
	 */
	public int getBackwashPumpNum(String waterPlantCode);
	/**
	 * 反冲洗风机个数
	 * @author wangying
	 * @return
	 */
	public int getBackwashFanNum(String waterPlantCode);
	/**
	 * 供水泵个数
	 * @author wangying
	 * @return
	 */
	public int  getSupplyPumpNum(String waterPlantCode) ;
	/**
	 * 取水泵个数
	 * @author wangying
	 * @return
	 */
	public int  getGetPumpNum(String waterPlantCode) ;
	
}
